//
//  BaseViewController.h
//  TrialRun
//
//  Created by Steven.Yung on 2017/3/7.
//  Copyright © 2017年 Minidai. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NetworkProgressHUD.h"
#import "UIView+LoadingOrBlank.h"
#import "TTTAttributedLabel.h"

@interface BaseViewController : UIViewController

/*! 导航条是否背景透明 YES=透明 NO=系统货自定义的默认方案 */
@property (nonatomic, assign) BOOL naviBarTranslucent;

/*! 设置返回按钮的颜色 */
@property (nonatomic, strong) UIColor *leftBarTintColor;

/*! 设置automaticallyAdjustsScrollViewInsets 默认为YES， 为NO时全屏显示 */
@property (nonatomic, assign) BOOL makeFullScreen;

/*! 设置navigationBar的title颜色，如果为空则使用系统或者自定义的默认颜色 */
@property (nonatomic, strong) UIColor *barTitleColor;

- (TTTAttributedLabel *)labelWithText:(NSString *)text
                                color:(UIColor *)color
                             linkText:(NSString *)linkText
                            linkColor:(UIColor *)linkColor;

- (UIButton *)buttonWithTitle:(NSString *)title
                   titleColor:(UIColor *)titleColor
                         font:(UIFont *)font
              backgroundColor:(UIColor *)backgroundColor
                 cornerRadius:(CGFloat)radius;

- (void)initBackButtonItemColor:(UIColor *)color;

@end
